package vault

// region BundlePage

type BundlePage struct {
	*QueryParam
	*TableMap
}

func NewBundlePage(query *QueryParam, table *TableMap) *BundlePage {
	return &BundlePage{
		QueryParam: query,
		TableMap:   table,
	}
}

func ExampleBundlePage(param *QueryParam) *BundlePage {
	return &BundlePage{
		QueryParam: param,
		TableMap: &TableMap{
			PageTitle: "Sample Table",
			Headers: []TableHeader{
				{Key: "id", Value: "ID", IsShow: true},
				{Key: "name", Value: "Name", IsShow: true},
				{Key: "age", Value: "Age", IsShow: true},
			},
			Rows: []TableRow{
				{"id": 1, "name": "Alice", "age": 30},
				{"id": 2, "name": "Bob", "age": 25},
				{"id": 3, "name": "Charlie", "age": 35},
			},
		},
	}
}

// endregion
